import request from '@/utils/request'

// 查询一站式社区-功能房开放时间列表
export function listRoomOpeningHours(query) {
  return request({
    url: '/staff/roomOpeningHours/list',
    method: 'get',
    params: query
  })
}

// 查询一站式社区-功能房开放时间详细
export function getRoomOpeningHours(ohId) {
  return request({
    url: '/staff/roomOpeningHours/' + ohId,
    method: 'get'
  })
}

// 新增一站式社区-功能房开放时间
export function addRoomOpeningHours(data) {
  return request({
    url: '/staff/roomOpeningHours/add',
    method: 'post',
    data: data
  })
}

// 批量新增一站式社区-功能房开放时间
export function addBatchRoomOpeningHours(data) {
  return request({
    url: '/staff/roomOpeningHours/addBatch',
    method: 'post',
    data: data
  })
}

// 修改一站式社区-功能房开放时间
export function updateRoomOpeningHours(data) {
  return request({
    url: '/staff/roomOpeningHours/update',
    method: 'post',
    data: data
  })
}

// 删除一站式社区-功能房开放时间
export function delRoomOpeningHours(ohId) {
  return request({
    url: '/staff/roomOpeningHours/' + ohId,
    method: 'post'
  })
}
